package cn.wolfcode.rbac.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class Employee {
    private Long id;

    private String name;

    /**
     * @JsonIgnore 响应JSON数据时, 忽略该字段, 但是不能接受
     * @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)  设置该属性只可写,不可读。
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;

    private String email;

    private Integer age;

    private Boolean admin;

    private Department department;
}